<?php


class CheckExpiredEventCommand extends CConsoleCommand
{
    public function run($arg)
    {
        $currDate = date('Y-m-d');
        Event::model()->updateAll(array('status'=>STATUS_EXPIRED),'start_date <"'.$currDate.'"');
        return;
    }
}